package com.web.service;


import com.web.entity.HealthKnow;

import java.util.List;

public interface HealthKnowService {

    //增加健康知识
    void add(HealthKnow healthKnow);

    //根据id删除健康知识
    void deleteById(int id);

    //根据id修改健康知识
    void update(HealthKnow healthKnow);

    //根据id查询健康知识
    HealthKnow findById(int id);

    //查询所有健康知识
    List<HealthKnow> findAll();

    List<HealthKnow> findByName(String name);
}
